import SimpleHTTPServer
import SocketServer

__author__="lehui99"

class FreeSSHConnectorHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
    def do_POST(self):
        print self.path
        self.send_response(302)
        self.send_header('Location', 'redirectfile')
        self.send_header('Content-Length', '0')
        self.wfile.write('\r\n')

if __name__ == "__main__":
    httpd = SocketServer.TCPServer(("127.0.0.1", 43210), FreeSSHConnectorHTTPRequestHandler)
    httpd.serve_forever()
